package com.example.myshop.service;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.stereotype.Service;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
@Service
public class districtservicetest {
    @Autowired
    DistrictService districtService;
    @Test
    public void getlist(){
        districtService.getByParent("110100");
    }
    @Test
    public void getname(){
        String name= districtService.getNameByCode("110105");
        System.out.println(name);
    }
}
